<?php include APPLICATION_PATH . '/modules/default/layouts/scripts/content-outer-start.phtml'; ?>
<table border="0" width="100%" cellpadding="0" cellspacing="0">
    <tbody>
        <tr valign="top">
            
            <td>
                <!--  start step-holder -->
                <div id="step-holder">
                    <div class="step-no"></div>
                    <div class="step-dark-left"><a href="">Search Results</a></div>
                    <div class="step-dark-right">&nbsp;</div>
                </div>
                <!--  end step-holder -->
                <!--  start related-activities -->
                
                <?php
                    if ($this->generals) {
                        foreach ($this->generals as $item) {
                            echo '<div id="featured-content" style="width: auto; border-bottom: 1px dotted gray; margin-bottom: 30px;">';
                                echo '<div id="column1" style="width:100%; float:left;">';
                                $imgs = explode(",",$item['test_images']); 
                                    echo '<div class="style_css"><img src="' . $imgs[0] . '" width="300" alt=""></div>';
                                    echo '<div class="style_css_title"><a href="' . $this->baseUrl . '/default/hospital/detail/id/' . $item['id_hospital'] . '" class="hospitalname">' . $item['test_name'] . '-' . $item['hospital_name'] . '</a></div>';
                                    echo '<div class="style_css_littlerate">Score from <b>' . $item['reviews'] . '</b> reviews. Rate: <b>' . $item['overall'] . '</b>. Fee: <b>'. $item['fee'] .'</b></div>';
                                    echo '<div class="style_css_title">' . $item['desc'] . '</div>';
                                    echo '<div class="style_css_button"><a class="more" href="'.$this->baseUrl.'/default/processgeneral/detail/id/' . $item['id_test'] . '">Read More</a></div>';
                                echo '</div>';
                            echo '</div>';
                        }
                    }
                ?>
                <!-- end related-activities -->

            </td>
            <td>
                <!-- start id-form -->
                <form id="form-main" class="box-form" action="<?php echo $this->baseUrl ?>/default/processgeneral/index" method="post">
                    <table border="0" cellpadding="0" cellspacing="0" id="id-form">
                        <tbody>
                            <tr>
                        <div style="height: 30px;"></div>
                        </tr>
                        <tr>
                            <th valign="top">Hospital Name:</th>
                            <td>
                                <select id="hospitalName" name="hospitalName" class="select_css" style="background-color: #FFFFFF">
                                    <option value="-1" <?php if ($this->curHospital != "-1") echo 'selected'; ?>>All</option>
                                    <?php
                                    $hospitals = $this->hospitals;
                                    if ($hospitals) {
                                        foreach ($hospitals as $item) {
                                            $select = "";
                                            if ($this->curHospital && $this->curHospital != "-1" && $this->curHospital == $item['id'])
                                                $select = 'selected';
                                            echo '<option value="' . $item['id'] . '"' . $select . '>' . $item['name'] . '</option>';
                                        }
                                    }
                                    ?>
                                </select>
                            </td>
                            <td>

                            </td>
                        </tr>
                        <tr>
                            <th valign="top">Tests Name:</th>
                            <td>
                                <select id="testName" name="testName" class="select_css" style="background-color: #FFFFFF">
                                    <option value="-1" <?php if ($this->curHospital != "-1") echo 'selected'; ?>>All</option>
                                    <?php
                                    $tests = $this->tests;
                                    if ($tests) {
                                        foreach ($tests as $item) {
                                            $select = "";
                                            if ($this->curTest && $this->curTest != "-1" && $this->curTest == $item['id']) $select = 'selected';
                                            echo '<option value="' . $item['id'] . '"' . $select . '>' . $item['name'] . '</option>';
                                        }
                                    }
                                    ?>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <th valign="top">Fee:</th>
                            <td><input type="text" name="fee" class="inp-form validate notnull integer positive" placeholder="fee" <?php if ($this->curFee) { echo 'value="'.$this->curFee.'"'; } ?>></td>
                            <td>

                            </td>
                        </tr>

                        <tr>
                            <th>&nbsp;</th>
                            <td valign="top">
                                <input type="submit" id="save" value="Search" class="button gray" style="float: left;">
                            </td>
                            <td></td>
                        </tr>
                    </table>
                </form>
                <script>zads.initValidate();</script>
                <!-- end id-form  -->
                
                
            </td>
            
        </tr>
        <tr>
            <td><img src="<?php echo $this->baseUrl . '/public/' . $this->module; ?>/images/shared/blank.gif" width="695" height="1" alt="blank"></td>
            <td></td>
        </tr>
    </tbody>
</table>

<div class="clear"></div>
<?php include APPLICATION_PATH . '/modules/default/layouts/scripts/content-outer-end.phtml'; ?>